package com.myx.typhoon.business.mapper;

import com.myx.typhoon.business.domain.Article;
import com.myx.typhoon.business.domain.ArticleExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface ArticleMapper {
    int countByExample(ArticleExample example);

    int deleteByExample(ArticleExample example);

    int deleteByPrimaryKey(Long articleId);

    int insert(Article record);

    int insertSelective(Article record);

    List<Article> selectByExample(ArticleExample example);

    Article selectByPrimaryKey(Long articleId);

    int updateByExampleSelective(@Param("record") Article record, @Param("example") ArticleExample example);

    int updateByExample(@Param("record") Article record, @Param("example") ArticleExample example);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);
    
    Article findArticleById(Long articleId);
    
    List<Article> findArticlesList(Map<String,Object> map);
    
    int findArticlesCount(Map<String,Object> map);
}